'''
 pip install pyautogui
    get mouse position
'''
import pyautogui as pg
try:
    while True:
        x, y = pg.position()
        print(x,y)
except:
    print('\n')